export const sleep = async (ms: number) =>
  new Promise((resolve) => setTimeout(resolve, ms));

export const sleepRand = async (min: number, max: number) => {
  let ms = Math.floor(Math.random() * (max - min + 1) + min);
  return sleep(ms);
};
